package com.bdv.md.dao.impl;

import org.springframework.stereotype.Repository;

import com.bdv.md.dao.TransactionDao;
import com.bdv.md.model.Transaction;

@Repository
public class TransactionDaoImpl extends AbstractDaoImpl<Transaction, String > implements TransactionDao{

	protected TransactionDaoImpl() {
		super(Transaction.class);
	}

	public boolean validateTxId(String txId) {
		Transaction tx = findById(txId);
		return tx==null;
	}

	
}
